//------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ // // 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。 // #pragma warning disable 1591 namespace DAL.oWeb { using System; using System.Web.Services; using System.Diagnostics; using System.Web.Services.Protocols; using System.Xml.Serialization; using System.ComponentModel; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="WebService1Soap", Namespace="http://tempuri.org/")] public partial class WebService1 : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback BillToOtherPaymentOperationCompleted; private System.Threading.SendOrPostCallback BillToMaterialOutOperationCompleted; private System.Threading.SendOrPostCallback BillToProdInOperationCompleted; private System.Threading.SendOrPostCallback DelBillMaterialOutOperationCompleted; private System.Threading.SendOrPostCallback DelBillProdInOperationCompleted; private System.Threading.SendOrPostCallback DelBillOtherPaymentOperationCompleted; private System.Threading.SendOrPostCallback HelloWorldOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public WebService1() { this.Url = global::DAL.Properties.Settings.Default.DAL_oWeb_WebService1; if ((this.IsLocalFileSystemWebService(this.Url) == true)) { this.UseDefaultCredentials = true; this.useDefaultCredentialsSetExplicitly = false; } else { this.useDefaultCredentialsSetExplicitly = true; } } public new string Url { get { return base.Url; } set { if ((((this.IsLocalFileSystemWebService(base.Url) == true) && (this.useDefaultCredentialsSetExplicitly == false)) && (this.IsLocalFileSystemWebService(value) == false))) { base.UseDefaultCredentials = false; } base.Url = value; } } public new bool UseDefaultCredentials { get { return base.UseDefaultCredentials; } set { base.UseDefaultCredentials = value; this.useDefaultCredentialsSetExplicitly = true; } } /// public event BillToOtherPaymentCompletedEventHandler BillToOtherPaymentCompleted; /// public event BillToMaterialOutCompletedEventHandler BillToMaterialOutCompleted; /// public event BillToProdInCompletedEventHandler BillToProdInCompleted; /// public event DelBillMaterialOutCompletedEventHandler DelBillMaterialOutCompleted; /// public event DelBillProdInCompletedEventHandler DelBillProdInCompleted; /// public event DelBillOtherPaymentCompletedEventHandler DelBillOtherPaymentCompleted; /// public event HelloWorldCompletedEventHandler HelloWorldCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/BillToOtherPayment", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool BillToOtherPayment(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, ref string HReturn) { object[] results = this.Invoke("BillToOtherPayment", new object[] { HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn}); HReturn = ((string)(results[1])); return ((bool)(results[0])); } /// public void BillToOtherPaymentAsync(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn) { this.BillToOtherPaymentAsync(HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn, null); } /// public void BillToOtherPaymentAsync(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn, object userState) { if ((this.BillToOtherPaymentOperationCompleted == null)) { this.BillToOtherPaymentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBillToOtherPaymentOperationCompleted); } this.InvokeAsync("BillToOtherPayment", new object[] { HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn}, this.BillToOtherPaymentOperationCompleted, userState); } private void OnBillToOtherPaymentOperationCompleted(object arg) { if ((this.BillToOtherPaymentCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.BillToOtherPaymentCompleted(this, new BillToOtherPaymentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/BillToMaterialOut", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool BillToMaterialOut(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, ref string HReturn) { object[] results = this.Invoke("BillToMaterialOut", new object[] { HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn}); HReturn = ((string)(results[1])); return ((bool)(results[0])); } /// public void BillToMaterialOutAsync(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn) { this.BillToMaterialOutAsync(HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn, null); } /// public void BillToMaterialOutAsync(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn, object userState) { if ((this.BillToMaterialOutOperationCompleted == null)) { this.BillToMaterialOutOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBillToMaterialOutOperationCompleted); } this.InvokeAsync("BillToMaterialOut", new object[] { HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn}, this.BillToMaterialOutOperationCompleted, userState); } private void OnBillToMaterialOutOperationCompleted(object arg) { if ((this.BillToMaterialOutCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.BillToMaterialOutCompleted(this, new BillToMaterialOutCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/BillToProdIn", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool BillToProdIn(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, ref string HReturn) { object[] results = this.Invoke("BillToProdIn", new object[] { HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn}); HReturn = ((string)(results[1])); return ((bool)(results[0])); } /// public void BillToProdInAsync(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn) { this.BillToProdInAsync(HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn, null); } /// public void BillToProdInAsync(string HBillNo, string HJson, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn, object userState) { if ((this.BillToProdInOperationCompleted == null)) { this.BillToProdInOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBillToProdInOperationCompleted); } this.InvokeAsync("BillToProdIn", new object[] { HBillNo, HJson, HUrl, HdbID, HUserName, HPsd, HReturn}, this.BillToProdInOperationCompleted, userState); } private void OnBillToProdInOperationCompleted(object arg) { if ((this.BillToProdInCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.BillToProdInCompleted(this, new BillToProdInCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DelBillMaterialOut", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool DelBillMaterialOut(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, ref string HReturn) { object[] results = this.Invoke("DelBillMaterialOut", new object[] { HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn}); HReturn = ((string)(results[1])); return ((bool)(results[0])); } /// public void DelBillMaterialOutAsync(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn) { this.DelBillMaterialOutAsync(HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn, null); } /// public void DelBillMaterialOutAsync(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn, object userState) { if ((this.DelBillMaterialOutOperationCompleted == null)) { this.DelBillMaterialOutOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDelBillMaterialOutOperationCompleted); } this.InvokeAsync("DelBillMaterialOut", new object[] { HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn}, this.DelBillMaterialOutOperationCompleted, userState); } private void OnDelBillMaterialOutOperationCompleted(object arg) { if ((this.DelBillMaterialOutCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DelBillMaterialOutCompleted(this, new DelBillMaterialOutCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DelBillProdIn", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool DelBillProdIn(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, ref string HReturn) { object[] results = this.Invoke("DelBillProdIn", new object[] { HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn}); HReturn = ((string)(results[1])); return ((bool)(results[0])); } /// public void DelBillProdInAsync(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn) { this.DelBillProdInAsync(HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn, null); } /// public void DelBillProdInAsync(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn, object userState) { if ((this.DelBillProdInOperationCompleted == null)) { this.DelBillProdInOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDelBillProdInOperationCompleted); } this.InvokeAsync("DelBillProdIn", new object[] { HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn}, this.DelBillProdInOperationCompleted, userState); } private void OnDelBillProdInOperationCompleted(object arg) { if ((this.DelBillProdInCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DelBillProdInCompleted(this, new DelBillProdInCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DelBillOtherPayment", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool DelBillOtherPayment(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, ref string HReturn) { object[] results = this.Invoke("DelBillOtherPayment", new object[] { HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn}); HReturn = ((string)(results[1])); return ((bool)(results[0])); } /// public void DelBillOtherPaymentAsync(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn) { this.DelBillOtherPaymentAsync(HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn, null); } /// public void DelBillOtherPaymentAsync(string HBillNo, string HUrl, string HdbID, string HUserName, string HPsd, string HReturn, object userState) { if ((this.DelBillOtherPaymentOperationCompleted == null)) { this.DelBillOtherPaymentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDelBillOtherPaymentOperationCompleted); } this.InvokeAsync("DelBillOtherPayment", new object[] { HBillNo, HUrl, HdbID, HUserName, HPsd, HReturn}, this.DelBillOtherPaymentOperationCompleted, userState); } private void OnDelBillOtherPaymentOperationCompleted(object arg) { if ((this.DelBillOtherPaymentCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DelBillOtherPaymentCompleted(this, new DelBillOtherPaymentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string HelloWorld() { object[] results = this.Invoke("HelloWorld", new object[0]); return ((string)(results[0])); } /// public void HelloWorldAsync() { this.HelloWorldAsync(null); } /// public void HelloWorldAsync(object userState) { if ((this.HelloWorldOperationCompleted == null)) { this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted); } this.InvokeAsync("HelloWorld", new object[0], this.HelloWorldOperationCompleted, userState); } private void OnHelloWorldOperationCompleted(object arg) { if ((this.HelloWorldCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } private bool IsLocalFileSystemWebService(string url) { if (((url == null) || (url == string.Empty))) { return false; } System.Uri wsUri = new System.Uri(url); if (((wsUri.Port >= 1024) && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { return true; } return false; } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] public delegate void BillToOtherPaymentCompletedEventHandler(object sender, BillToOtherPaymentCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class BillToOtherPaymentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal BillToOtherPaymentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public string HReturn { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] public delegate void BillToMaterialOutCompletedEventHandler(object sender, BillToMaterialOutCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class BillToMaterialOutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal BillToMaterialOutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public string HReturn { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] public delegate void BillToProdInCompletedEventHandler(object sender, BillToProdInCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class BillToProdInCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal BillToProdInCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public string HReturn { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] public delegate void DelBillMaterialOutCompletedEventHandler(object sender, DelBillMaterialOutCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DelBillMaterialOutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal DelBillMaterialOutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public string HReturn { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] public delegate void DelBillProdInCompletedEventHandler(object sender, DelBillProdInCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DelBillProdInCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal DelBillProdInCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public string HReturn { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] public delegate void DelBillOtherPaymentCompletedEventHandler(object sender, DelBillOtherPaymentCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DelBillOtherPaymentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal DelBillOtherPaymentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public string HReturn { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] public delegate void HelloWorldCompletedEventHandler(object sender, HelloWorldCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3761.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal HelloWorldCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } } #pragma warning restore 1591